# -*- coding: utf-8 *-*
import os
import re
import sys

class PathHelper:
    
    @staticmethod
    def getMainDirectory():
        main = os.path.abspath(sys.modules['__main__'].__file__)
        return re.sub(r'\w*\.py$', '', main)
     
    @staticmethod
    def getPath(*args):
        main = PathHelper.getMainDirectory()
        return os.path.join(main, *args)
